package com.dzx.design.structural.decorator.v2;

/**
 * @author dzx
 * @ClassName:
 * @Description:
 * @date 2019年08月01日 15:32:55
 */
public class EggDecorator extends  AbstractDecorator{
    public EggDecorator(ABattercake aBattercake) {
        super(aBattercake);
    }


    @Override
    public String getDesc() {
        return super.getDesc()+"加一个鸡蛋";
    }

    @Override
    public int cost() {
        return super.cost()+1;
    }
}
